]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/entry: Set "default" cursor on StEntry side icons
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Feb 2026 11:42:44 +0000 (12:42 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 16 Feb 2026 13:35:55 +0000 (14:35 +0100)
Since the default cursor type is CLUTTER_CURSOR_INHERIT, these
icons started inheriting the CLUTTER_CURSOR_TEXT cursor set on the
StEntry as a whole.

Hint these icons again as interactive by enforcing a default cursor
on them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4078>

src/st/st-entry.c

index 25e179bfe84f02ea89f50042f725fa32a3dea551..d00bee6b7302be243e19f8065238ce55039a4fe8 100644 (file)
@@ -1305,6 +1305,7 @@ _st_entry_set_icon (StEntry       *entry,
 
       clutter_actor_set_reactive (*icon, TRUE);
       clutter_actor_add_child (CLUTTER_ACTOR (entry), *icon);
+      clutter_actor_set_cursor_type (*icon, CLUTTER_CURSOR_DEFAULT);
 
       click_gesture = clutter_click_gesture_new ();
       clutter_actor_add_action_with_name (*icon, "entry-icon-click-gesture", click_gesture);